package com.xx.account.controller;

import com.xx.account.domain.bo.ImageZipDownloadBo;
import com.xx.account.service.IAccountDownloadImageService;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

/**
 * 导出Controller
 *
 * @author ruoyi
 * @date 2024-09-28
 */
@RestController
@RequestMapping("/account/download")
public class AccountDownloadController {

    @Resource
    private IAccountDownloadImageService accountDownloadImageService;

    @PostMapping("/downloadImageZip")
    public ResponseEntity downloadImageZip(@RequestBody ImageZipDownloadBo bo, HttpServletResponse response) {
        return accountDownloadImageService.downloadImageZip(bo, response);
    }
}
